package com.chum.chamber.dao;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.ExceptionHandler;

import com.chum.chamber.model.Registry;

@Repository
public class RegistryDAOImpl implements RegistryDAO {

	@Autowired
	private SessionFactory sessionFactory;
	
	@Override
	@ExceptionHandler
	public boolean saveRegistry(Registry registry) {
		boolean saved = false;
		try {
			saved = true;
		} catch (Exception e) {
			// TODO: handle exception
		}
		return saved;
	}
}
